import { request } from 'umi'

export function getRole() {
  let params = {
    t: 1652106472989,
    current: 1,
    size: 10,
  }
  return request('/sys/role/page', {
    params
  })
}


export function getRoleSearchList(payload:any){
  let params = {
    t: 1652106472989,
    current: 1,
    size: 10,
    roleName:payload.roleName
  }
  return request('/sys/role/page',{
    params
  })
}